<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddRecipesStepsTips extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('recipes_steps', function(Blueprint $table)
		{
			$table->string( 'tip', 255 )->after( 'step_description' );
			$table->string( 'title', 80 )->after( 'step_description' );
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('recipes_steps', function(Blueprint $table)
		{
			$table->dropColumn( 'tip' );
			$table->dropColumn( 'title' );
		});
	}

}
